<?php
interface Retrievable {
    
    /**
     * Returns a BaseDom by id
     * Must be implemented in concrete dom classes due to how PHP handles static functions and inheritance
     *
     * @param Integer $id
     * @return BaseDom
     * @abstract
     */
    public static function get($id);
    
    /**
     * Returns an array of all BaseDoms that match the search/sort params
     * Must be implemented in concrete dom classes due to how PHP handles static functions and inheritance
     *
     * @param Array $searchArray
     * @param Array $sortArray
     * @return Array
     * @abstract
     */
    public static function getAll($searchArray=Array(), $sortArray=Array());
    
}
?>